Skip to content

Conversation

@bpurinton
Copy link

@bpurinton bpurinton commented Aug 9, 2025

Resolves #124

Important

Update view directory structure to use singular table names with '_templates' suffix, increment version to 0.0.5, and simplify HTML in views.

  • Behavior:
    • Change view directory from app/views/<plural_table_name> to app/views/<singular_table_name>_templates in resource_generator.rb and controller.rb.
    • Update template rendering paths in controller.rb to reflect new directory structure.
  • Versioning:
    • Update version from 0.0.4 to 0.0.5 in VERSION and draft_generators.gemspec.
  • Views:
    • Simplify HTML structure in index.html.erb and show.html.erb by removing unnecessary <div> elements and using <article> and <header> tags.

This description was created by Ellipsis for a41019a. You can customize this summary. It will automatically update as commits are pushed.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 3020e92 in 1 minute and 0 seconds. Click for details.
  • Reviewed 436 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. lib/generators/draft/resource/resource_generator.rb:35
  • Draft comment:
    Using 'singular_table_name_templates' instead of the conventional plural folder name; confirm this naming is intentional.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None
2. lib/generators/draft/resource/templates/controllers/controller.rb:41
  • Draft comment:
    Typo: '@plural_table_name' is used in the redirect path; it should be 'plural_table_name'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. lib/generators/draft/resource/templates/views/index.html.erb:7
  • Draft comment:
    Refactored index view uses semantic HTML (article, header, ul); ensure the new list layout meets UI and accessibility needs.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. lib/generators/draft/resource/templates/views/show.html.erb:77
  • Draft comment:
    Show view markup now uses semantic elements; verify that conditional sentinel comments still work as expected.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_XCVvLSl2hH8jMfPj

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed 2a2fdb2 in 36 seconds. Click for details.
  • Reviewed 20 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. VERSION:1
  • Draft comment:
    Version bumped to 0.0.5.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. draft_generators.gemspec:9
  • Draft comment:
    s.version updated to 0.0.5.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_6GeUhqoYsG5A0vMG

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed a41019a in 32 seconds. Click for details.
  • Reviewed 48 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. lib/generators/draft/resource/resource_generator.rb:74
  • Draft comment:
    Removed extraneous whitespace in route definitions for better consistency.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative, as it only states that whitespace was removed for consistency. It doesn't provide any actionable feedback or suggestions for improvement.
2. lib/generators/draft/resource/templates/controllers/controller.rb:65
  • Draft comment:
    Adjusted spacing inside hash literal for redirect_to in update action for consistency.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative, as it only mentions an adjustment for consistency without suggesting any action or asking for confirmation. It doesn't provide any actionable feedback or raise any concerns about the code.
3. lib/generators/draft/resource/templates/controllers/controller.rb:87
  • Draft comment:
    Consistent formatting: added a space inside the hash literal in the destroy action redirect_to.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative and does not provide any actionable feedback or suggestions. It simply states that a space was added for consistent formatting, which does not require any action from the PR author.

Workflow ID: wflow_ucpo2uCvmvOeJ0ti

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

draft:resource should name view folder TABLE_NAME_templates instead of just TABLE_NAME

2 participants